{extend name="common/userbase"}
{block name="title"}我的伙伴{/block}
{block name="header-content"}
<div class="am-header-left am-header-nav">
    <a href="#left-link" class="">
        <i class="am-header-icon am-icon-chevron-left"></i>
    </a>
</div>
<h1 class="am-header-title">
    <a href="#title-link" class="">我的伙伴</a>
</h1>
<div class="am-header-right am-header-nav">
    <a href="#right-link" class="">
        <i class="am-header-icon  am-icon-home"></i>
    </a>
</div>
{/block}
{block name="content"}
    <div class="my-nav-bar">
    	<ol class="am-breadcrumb">
          <li><a href="#">首页</a></li>
          <li><a href="#">我的伙伴</a></li>
        </ol>
    </div>
    <div class="am-cf cart-panel">
    	<div class="withdrawals-panel">
			{foreach name="levelMember" key="key" id="value" }
            <div class="partners-title-panel">
            	<div class="partners-title-panel-title"><span class="am-fr">{:count($levelMember[$key])}人</span><i class="am-icon-chevron-circle-right"></i>我的一级伙伴</div>
            </div>
        	<table class="am-table am-table-striped am-table-hover comm-table">
            	<thead>
                    <tr>
                        <th>ID</th>
                        <th>用户名</th>
                        <th>日期</th>
                        <th>上级</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach name="value" id="v"}
                	<tr>
                        <td>{$v['id']}</td>
                        <td>{$v['username']}</td>
                        <td>2015-05-05</td>
                        <td>{$v['pusername']}</td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
            {/foreach}
        </div>
    </div>
 {/block}